package me.keiwu.pub.util;

/**
 * Created by kei on 31/01/2018.
 */
public class AreaUtil {

    public static int getDistrict(long cityCode) {
        return (int) (cityCode / 1000000);
    }

    public static int getCity(long cityCode) {
        return (int) (cityCode / 100000000);
    }

    public static int getProvince(long cityCode) {
        return (int) (cityCode / 10000000000L);
    }

}
